package com.zjj.learn.designmodel.work.mediator;

/**
 * 抽象同事
 **/
public abstract class Person {

    private String name;

    /**
     * 在抽象同事中聚合抽象中介者
     **/
    private Mediator mediator;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Mediator getMediator() {
        return mediator;
    }

    public void setMediator(Mediator mediator) {
        this.mediator = mediator;
    }

    public Person(String name) {
        this.name = name;
    }


    /**
     * 发布信息抽象方法，具体的实现有继承的具体同事声明
     **/
    public abstract void fabuxinxi(String msg);
}
